package com.huluobo.base.net

/**
 *  Created by LC on 2024/7/23.
 */
object Const {
    const val baseUrl = "http://10.161.9.80:7035" //35

    const val PARAM_TOKEN = "token"

    const val URL_LOGIN = "/sysUser/loginUser"

    const val PARAM_USERNAME = "uName"

    const val PARAM_PASSWORD = "uPwd"

    const val PARAM_TIME = "time"

    const val MEDIA_TYPE = "application/json;charset=utf-8"

    const val PARAM_HOME = "home"

    //签到参数
    const val PARAM_SIGN_ID = "signId"
    const val PARAM_START_ADDRESS = "startAddress"
    const val PARAM_END_ADDRESS = "endAddress"
    const val PARAM_END_TIME = "endTime"
    const val PARAM_START_TIME = "startTime"
    const val PARAM_USER_ID = "userId"

    //签到签退接口,返回一致
    const val URL_SIGN_IN = "/SysSign/startSign"
    const val URL_SIGN_OUT = "/SysSign/endSign"

    //新闻接口
    const val URL_NEWS = "/sysNews/selAllNews"
    const val PARAM_PAGE = "page"

    //添加新闻参数
    const val PARAM_NEWS_TIME = "newsTime"
    const val PARAM_NEWS_TITLE = "newsTitle"
    const val PARAM_NEWS_VALUE = "newsValue"

    //添加新闻接口
    const val URL_ADD_NEWS = "/sysNews/addNews"

    //获取维修数据接口
    const val URL_GET_REPAIR_LIST = "/sysRepair/selAllRepair"
    const val PARAM_REPAIR_ID = "repairId"
    const val URL_REPAIR_COMPLETE = "/sysVerify/verifyRepair"
    const val PARAM_REPAIR_DATA = "repairData"
    const val PARAM_REPAIR_DESC = "repairDescribe"
    const val URL_ADD_REPAIR = "/sysRepair/addRepair"

    //全部来访接口 注意,可以传空的body,但是避免出错,可以传一个任意对象比如carNum
    const val PARAM_CAR_NUM = "carNum"
    const val URL_ALL_VISITOR_LIST = "/sysVisitor/selVisitor"

    //    {
//        "carNum": "string",
//        "parkId": 0,
//        "userId": 290,
//        "visitorDescribe": "string",
//        "visitorEnd": "string",
//        "visitorId": 0,
//        "visitorStart": "string",
//        "visitorTime": "string"
//    }
    //新增来访信息接口参数
    const val URL_ADD_VISITOR = "/sysVisitor/addVisitor"
    const val PARAM_VISITOR_DESC = "visitorDescribe"
    const val PARAM_VISITOR_END_TIME = "visitorEnd"
    const val PARAM_VISITOR_START_TIME = "visitorStart"
    const val PARAM_VISITOR_TIME = "visitorTime"

    //删除来访接口
    const val URL_DELETE_VISITOR = "/sysVisitor/delVisitor"
    const val PARAM_VISITOR_ID = "visitorId"

    //巡更相关接口
    const val URL_ALL_PATROL = "/sysPatrol/selALLPatroles"

    //获取全部巡逻点
    const val URL_GET_ALL_POINT = "/sysPatrol/selSysPoint"

    //添加巡逻点接口
    const val URL_ADD_POINT = "/sysPatrol/addSysPoint"

    //添加巡逻点参数
    const val PARAM_POINT_NAME = "pointName"

    //        {
//            "pEnd": "string",
//            "pGroupId": 0,
//            "pId": 0,
//            "pPoint": "string",
//            "pStart": "string",
//            "pTime": "string",
//            "pType": 0,
//            "pUserId": 0
//        }
    //添加巡逻路线
    const val PARAM_P_END = "pEnd"
    const val PARAM_P_POINT = "pPoint"
    const val PARAM_P_START = "pStart"
    const val PARAM_P_TIME = "pTime"

    const val URL_ADD_PATROL = "/sysPatrol/addPatrol"

    //获取全部签到数据
    const val PARAM_MONTH = "month"
    const val URL_GET_ALL_SIGN = "/SysSign/selMonth"

    //发布公告,查询公告
    const val URL_ADD_NOTICE = "/notice/addNotice"
    const val URL_QUERY_NOTICE = "/notice/selNotice"

    const val PARAM_NOTICE_TITLE = "noticeTitle"
    const val PARAM_NOTICE_VALUE = "noticeValue"

    //部门相关接口
    const val URL_GET_ALL_DEPARTMENT = "/sysDepartment/selDepartment"
    const val PARAM_DEPARTMENT_USER_ID = "departmentUserId"
    const val URL_ADD_DEPARTMENT = "/sysDepartment/addDepartment"
    const val PARAM_DEPARTMENT_NAME = "departmentName"

    //获取已分组人员
    const val URL_GET_DEPARTMENT_USER = "/sysUser/selDepartmentUser"
    const val URL_GET_UN_DEPARTMENT_USER = "/sysUser/selUNDepartmentUser"

}